package com.qj.yantaishan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qj.yantaishan.vo.ProductVo;
import org.apache.ibatis.annotations.Select;

public interface ProductVoMapper extends BaseMapper<ProductVo> {
    @Select("select count(*) from shanglala_product where store_category_id =#{catId}")
    int getProductCountByCategoryId(Integer catId);
    @Select("select count(*) from shanglala_product where category_fid =#{catId}")
    int getProductCountByFatherCategoryId(Integer catId);
}
